// 导入请求对象
import request from '../utils/request'

/* eslint-disable */
// 抽取api - 获取搜索建议
const searchArticles = ({ q, page, per_page }) => {
  return request({
    url: '/v1_0/search',
    method: 'get',
    params: {
      q, // q:q
      page,
      per_page
    }
  })
}

// 暴露
export { searchArticles }
